Referencing a theorem-like environment by its [name]
Posted
by Seamus
on Stack Overflow
See other posts from Stack Overflow
or by Seamus
Published on 2010-05-04T17:12:48Z
Indexed on
2010/05/06
12:48 UTC
Read the original article
Hit count: 264
latex
I am using ntheorem to typeset a set of conditions. In my preamble I have:
\theoremstyle{empty}
\newtheorem{Condtion}{Condtion}
When I want to typeset a condition, I write:
\begin{Condtion}[name]
\label{cnd:nm}
foo foo foo
\end{Condition}
The name appears boldface on the same line as the start of the text of the condition, with no number or anything. Perfect.
What I want to do now is refer to the condition by some variant of the \ref
command,
\ref calls the number [which is not displayed anywhere else]
\thref writes "Condition n" for the nth condition
\nameref writes the name of the SECTION of the label.
a zref solution was suggested here, but seems unsatisfactory.
Any clues?
© Stack Overflow or respective owner